[Release] Stage to Main#834
Merged
Merged
Conversation
* Fix distorted aspect ratio on Remove Background for iPhone portrait photos by correcting EXIF orientation before upload * Add readExifOrientation to read the EXIF orientation tag from JPEG headers without loading the full image * Add correctOrientation to redraw JPEG to canvas pre-upload, baking in correct pixel orientation for the RemoveBackground API * Gate orientation correction to mobile only — desktop JPEGs are unaffected and incur no overhead * Skip canvas re-encoding entirely if EXIF orientation is already correct (value 1), avoiding unnecessary processing for screenshots and pre-processed images Resolves: [MWPW-199518](https://jira.corp.adobe.com/browse/MWPW-199518) **Test URLs:** - Before: https://stage--da-cc--adobecom.aem.live/products/firefly/features/remove-background?unitylibs=stage - After: https://stage--da-cc--adobecom.aem.live/products/firefly/features/remove-background?unitylibs=MWPW-199518 **Testing Use Cases** - Upload a recently taken iPhone portrait photo on adobe.com Remove Background page on iPhone Safari (iOS 18.x) and verify the result image is not distorted - Upload the same photo on desktop browser and verify it processes correctly with no regression - Upload a PNG and WebP file on iPhone Safari and verify they are unaffected by the change - Upload a JPEG screenshot or downloaded image (no EXIF rotation) on iPhone Safari and verify the canvas re-encoding step is skipped (result should be identical to before) - Upload a landscape iPhone photo and verify it processes correctly with no distortion --------- Co-authored-by: Sanjay Saravanan <saravana@adobe.com>
|
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
|
arugupta1992
approved these changes
Jun 25, 2026
Ruchika4
approved these changes
Jun 25, 2026
vipu0303
approved these changes
Jun 25, 2026
Collaborator
|
Stage validation looks fine. Test results are in the task: MWPW-199573 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves: MWPW-NUMBER
Test URLs: